package com.sie.demo.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;
import java.sql.Timestamp;

/**
 * @author liaozhifeng
 * @date 2021/8/4 14:20
 * @Version 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("role")
public class Role {
    @TableId("role_id")
    private long roleId;
    private String roleName;
    @JSONField(format ="yyyy-MM-dd")
    private Date effectTime;
    @JSONField(format ="yyyy-MM-dd")
    private Date uneffectTime;
    private String note;
    private int status;
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private  Timestamp createTime;
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private Timestamp updateTime;
    @TableLogic
    @TableField("IS_DELETE")
    private int isDelete;
}
